//package com.kira.scaffoldmvc.Strategy;
//
//import cn.hutool.core.util.ObjectUtil;
//import lombok.RequiredArgsConstructor;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Component;
//
//@Slf4j
//@Component
//@RequiredArgsConstructor
//public class RtaProcessorManager extends SingleBeanContainer<RtaPlatformEnum, RtaProcessor> {
//
//    public RtaProcessor getByPlatform(String platform) {
//        Optional<RtaPlatformEnum> rtaPlatformOpt = RtaPlatformEnum.parseByCode(platform);
//        if (rtaPlatformOpt.isEmpty()) {
////            throw new BizException(UNSUPPORTED_RTA_PLATFORM);
//        }
//        RtaPlatformEnum platformEnum = rtaPlatformOpt.get();
//        RtaProcessor rtaProcessor = getBean(platformEnum);
//        if (ObjectUtil.isNull(rtaProcessor)) {
////            throw new BizException(UNSUPPORTED_RTA_PLATFORM);
//        }
//        return rtaProcessor;
//    }
//
//
//}